
/** 热更新代码 开始*/
(function () {
    if (typeof window.jsb === 'object') {
        var searchPaths = jsb.fileUtils.getSearchPaths();
        var wirtePath = jsb.fileUtils.getWritablePath();
        var newPaths = [ wirtePath + 'remoteAssets/', wirtePath + 'remoteAssets/assets'];
        Array.prototype.unshift.apply(searchPaths, newPaths);
        let obj = {};
        for (let i = 0; i < searchPaths.length; i++) {
            obj[searchPaths[i]] = true;
        }
        searchPaths = Object.keys(obj);
        console.log("HotUpdateMgr searchPaths x1: ", searchPaths);
        jsb.fileUtils.setSearchPaths(searchPaths);
        console.log("HotUpdateMgr searchPaths x2: ", jsb.fileUtils.getSearchPaths());
    }
})();
/** 热更新代码 结束*/
